package com.bkgy.modular.earlyWarningAnalysis.controller;

import com.alibaba.fastjson.JSONObject;
import com.bkgy.modular.earlyWarningAnalysis.service.StatisticalAnalysisService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author ZhuHongKai
 * @version 1.0
 * @ClassName StatisticalAnalysisController
 * @date 2022/12/19 10:50
 */
@RestController
@RequestMapping("/statisticalAnalysis")
public class StatisticalAnalysisController {
    @Resource
    private StatisticalAnalysisService statisticalAnalysisService;

    @PostMapping("/getData")
    public ResultData StatisticalAnalysisByData(@RequestBody JSONObject jsonObject) {
        return statisticalAnalysisService.findByStatistics(jsonObject);
    }
}
